#include "intelgpumonitor.h"
#include <iostream>
#include <unistd.h>

int main() {
    std::cout << "Testing Intel GPU Monitor..." << std::endl;
    
    // 创建监控器实例
    IntelGpuMonitor monitor;
    
    // 测试GPU核心使用率
    std::cout << "GPU Core Usage: " << monitor.getGpuCoreUsage() << "%" << std::endl;
    
    // 测试GPU内存使用率
    for (int i = 1; i <= 50; i++) {
        std::cout << "GPU Memory Usage (" << i << "): " 
                  << monitor.getGpuMemUsage() << "%" << std::endl;
        sleep(1); // 间隔1秒
    }
    
    std::cout << "Test completed." << std::endl;
    return 0;
}